package com.tlgen.starter.service;

import com.tlgen.starter.spring.SpringApplicationContext;

public class Test {

    public static void main(String[] args) {

        SpringApplicationContext applicationContext = new SpringApplicationContext(AppConfig.class);

        UserService userService = ((UserService) applicationContext.getBean("userService"));

        System.out.println(applicationContext.getBean("userService"));
        System.out.println(applicationContext.getBean("userService"));
        System.out.println(applicationContext.getBean("userService"));
        System.out.println(applicationContext.getBean("userService"));


        userService.test();

    }
}
